﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>Xmpp: StateForge::Examples::XmppChat::ChatScenarioTest Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                C# examples using state machines generated by StateBuilderDotNet
            </h1>
            <h3>
                Xmpp: StateForge::Examples::XmppChat::ChatScenarioTest Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_state_forge.html">StateForge</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples.html">Examples</a>      </li>
      <li class="navelem"><a class="el" href="namespace_state_forge_1_1_examples_1_1_xmpp_chat.html">XmppChat</a>      </li>
      <li class="navelem"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html">ChatScenarioTest</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-static-methods">Static Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#pri-static-attribs">Static Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">StateForge::Examples::XmppChat::ChatScenarioTest Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="StateForge::Examples::XmppChat::ChatScenarioTest" -->
<p><a href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a052bab6fddc5ae15535e5561499e5a4b">TestFixtureSetup</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a8513b31f367a541c7e82a78182ca9983">TestFixtureTearDown</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a72a0b5217a7451ce30a8b012f66083ff">SetUp</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a273b9c029b3ecbf341da12784fc9a2f3">TearDown</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a596aa4b3439f41503cacae32b2c443f2">TestRegisterNewAccount</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a1f83c591c7b9dbaa4f732bf8b0b2a518">TestScenarioLogin</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a594a1ba1723cbd75826081a397ed8d09">TestScenarioLogin02</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#af07b23d71695af31d7e47a9e75f7f4c7">TestOpenClose01</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#abce2b7a02d1eb541a207539f5b2b72b3">TestOpenClose02</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#acb1e7b65d6d1198679cd624046e96d92">TestScenarioUnSubscribe</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ad2d66e77beb61dca4297b5547bd25759">TestRosterAddRemove</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a704dde629a5d61f5f19755bc2cc158b0">TestRosterAdd</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ae1d55a6e9e2053b7b84839416728e997">TestSubscription01</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a8a1b5785e3eb27f67402bcff06d19299">TestChat01</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab10707cbc89fdd7f95541bba46dff72d">ChatScenarioTest</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_xmpp_db.html">XmppDb</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#abab7cbe90abd59209037290aedb65292">Db</a><code> [get, set]</code></td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac4ab04493e2b8f30108a04df0c0e855d">Start</a> (<a class="el" href="interface_state_forge_1_1_examples_1_1_xmpp_chat_1_1_i_chat_scenario.html">IChatScenario</a> context)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a55016b099daeb17214c83cbbb4b8c1f3">InitializeContext</a> (ContextBase context)</td></tr>
<tr><td colspan="2"><h2><a name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a5186fddb66245d8b90910927ecb95435">End</a> (object sender, EventArgs e)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a5b28a8fcee3271a06075605abfc611c3">Main</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The main entry point for the application.  <a href="#a5b28a8fcee3271a06075605abfc611c3"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html">ChatScenario</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#aa6070238faf8bc0b531170d0ad0db8f3">server</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac2504098d34f400d2b8595f74e1d96aa">dbConnectionString</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a4283244edfdb32332306ca4db2f34fff">username1</a> = &quot;stateforge1&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a160af876623f270df165374b80318aa3">password1</a> = &quot;stateforge1&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac8d9c4781f3bf9f36b916a313be3d3cd">username2</a> = &quot;stateforge2&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a6fee9f9418c890dff354e36e893a5c72">password2</a> = &quot;stateforge2&quot;</td></tr>
<tr><td colspan="2"><h2><a name="pri-static-attribs"></a>
Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static AutoResetEvent&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a6134cc4a314fbe4d2a20db8090b32b9d">autoResetEvent</a> = new AutoResetEvent(false)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static readonly string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#af3f5922f5d2adeda1756ccddbf8d35ad">traceName</a> = &quot;Client&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static TraceSource&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a4244ee948d5db0c60e7cd58880578bcb">ts</a> = new TraceSource(<a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#af3f5922f5d2adeda1756ccddbf8d35ad">traceName</a>)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00011">11</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ab10707cbc89fdd7f95541bba46dff72d"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::ChatScenarioTest" ref="ab10707cbc89fdd7f95541bba46dff72d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">StateForge::Examples::XmppChat::ChatScenarioTest::ChatScenarioTest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00164">164</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
        }
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a5186fddb66245d8b90910927ecb95435"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::End" ref="a5186fddb66245d8b90910927ecb95435" args="(object sender, EventArgs e)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void StateForge::Examples::XmppChat::ChatScenarioTest::End </td>
          <td>(</td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>sender</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">EventArgs&#160;</td>
          <td class="paramname"><em>e</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00152">152</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a6134cc4a314fbe4d2a20db8090b32b9d">autoResetEvent</a>.Set();
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a55016b099daeb17214c83cbbb4b8c1f3"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::InitializeContext" ref="a55016b099daeb17214c83cbbb4b8c1f3" args="(ContextBase context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::InitializeContext </td>
          <td>(</td>
          <td class="paramtype">ContextBase&#160;</td>
          <td class="paramname"><em>context</em></td><td>)</td>
          <td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00157">157</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            context.Observer = ObserverTrace.Instance(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#af3f5922f5d2adeda1756ccddbf8d35ad">traceName</a>);
            context.RegisterEndHandler(<span class="keyword">new</span> EventHandler&lt;EventArgs&gt;(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a5186fddb66245d8b90910927ecb95435">End</a>));
            context.EnterInitialState();
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a5b28a8fcee3271a06075605abfc611c3"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::Main" ref="a5b28a8fcee3271a06075605abfc611c3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void StateForge::Examples::XmppChat::ChatScenarioTest::Main </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The main entry point for the application. </p>

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00172">172</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab10707cbc89fdd7f95541bba46dff72d">ChatScenarioTest</a> chatScenarioTest = <span class="keyword">new</span> <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab10707cbc89fdd7f95541bba46dff72d">ChatScenarioTest</a>();
            chatScenarioTest.TestFixtureSetup();
            <span class="keywordtype">int</span> numTest = 2;

            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 1; i &lt;= numTest; i++)
            {
                Console.WriteLine(<span class="stringliteral">&quot;Session number &quot;</span> + i);

                Console.WriteLine(<span class="stringliteral">&quot;\tTestRegisterNewAccount&quot;</span>);
                chatScenarioTest.SetUp();
                chatScenarioTest.TestRegisterNewAccount();

                Console.WriteLine(<span class="stringliteral">&quot;\tTestScenarioLogin&quot;</span>);
                chatScenarioTest.SetUp();
                chatScenarioTest.TestScenarioLogin();

                Console.WriteLine(<span class="stringliteral">&quot;\tTestScenarioLogin02&quot;</span>);
                chatScenarioTest.SetUp();
                chatScenarioTest.TestScenarioLogin02();

                Console.WriteLine(<span class="stringliteral">&quot;\tTestOpenClose01&quot;</span>);
                chatScenarioTest.SetUp();
                chatScenarioTest.TestOpenClose01();

                Console.WriteLine(<span class="stringliteral">&quot;\tTestOpenClose02&quot;</span>);
                chatScenarioTest.SetUp();
                chatScenarioTest.TestOpenClose02();

                Console.WriteLine(<span class="stringliteral">&quot;\tTestRosterAddRemove&quot;</span>);
                chatScenarioTest.SetUp();
                chatScenarioTest.TestRosterAddRemove();

                Console.WriteLine(<span class="stringliteral">&quot;\tTestRosterAdd&quot;</span>);
                chatScenarioTest.SetUp();
                chatScenarioTest.TestRosterAdd();

                Console.WriteLine(<span class="stringliteral">&quot;\tTestSubscription01&quot;</span>);
                chatScenarioTest.SetUp();
                chatScenarioTest.TestSubscription01();

                Console.WriteLine(<span class="stringliteral">&quot;\tTestChat01&quot;</span>);
                chatScenarioTest.SetUp();
                chatScenarioTest.TestChat01();

                Console.WriteLine(<span class="stringliteral">&quot;\tTestScenarioUnSubscribe&quot;</span>);
                chatScenarioTest.SetUp();
                chatScenarioTest.TestScenarioUnSubscribe();
            }

            chatScenarioTest.TestFixtureTearDown();

            Environment.Exit(0);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a72a0b5217a7451ce30a8b012f66083ff"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::SetUp" ref="a72a0b5217a7451ce30a8b012f66083ff" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::SetUp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00047">47</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a> = <span class="keyword">new</span> ChatScenario();
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a> = this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>.CreateClient(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a4283244edfdb32332306ca4db2f34fff">username1</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a160af876623f270df165374b80318aa3">password1</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#aa6070238faf8bc0b531170d0ad0db8f3">server</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a> = this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>.CreateClient(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac8d9c4781f3bf9f36b916a313be3d3cd">username2</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a6fee9f9418c890dff354e36e893a5c72">password2</a>, <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#aa6070238faf8bc0b531170d0ad0db8f3">server</a>);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ac4ab04493e2b8f30108a04df0c0e855d"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::Start" ref="ac4ab04493e2b8f30108a04df0c0e855d" args="(IChatScenario context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::Start </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="interface_state_forge_1_1_examples_1_1_xmpp_chat_1_1_i_chat_scenario.html">IChatScenario</a>&#160;</td>
          <td class="paramname"><em>context</em></td><td>)</td>
          <td><code> [inline, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00144">144</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>.Context = context;
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>.Start();
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a6134cc4a314fbe4d2a20db8090b32b9d">autoResetEvent</a>.WaitOne();
            Assert.IsFalse(this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>.HasError());
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a273b9c029b3ecbf341da12784fc9a2f3"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::TearDown" ref="a273b9c029b3ecbf341da12784fc9a2f3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::TearDown </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00055">55</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a8a1b5785e3eb27f67402bcff06d19299"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::TestChat01" ref="a8a1b5785e3eb27f67402bcff06d19299" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::TestChat01 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00137">137</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            var context = <span class="keyword">new</span> TestChat01Context(this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a>);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a55016b099daeb17214c83cbbb4b8c1f3">InitializeContext</a>(context);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac4ab04493e2b8f30108a04df0c0e855d">Start</a>(context);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a052bab6fddc5ae15535e5561499e5a4b"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::TestFixtureSetup" ref="a052bab6fddc5ae15535e5561499e5a4b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::TestFixtureSetup </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00031">31</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#aa6070238faf8bc0b531170d0ad0db8f3">server</a> = System.Configuration.ConfigurationManager.AppSettings[<span class="stringliteral">&quot;Server&quot;</span>];
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac2504098d34f400d2b8595f74e1d96aa">dbConnectionString</a> = System.Configuration.ConfigurationManager.AppSettings[<span class="stringliteral">&quot;DbConnectionString&quot;</span>];

            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#abab7cbe90abd59209037290aedb65292">Db</a> = <span class="keyword">new</span> XmppDb(this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac2504098d34f400d2b8595f74e1d96aa">dbConnectionString</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#abab7cbe90abd59209037290aedb65292">Db</a>.Open();
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a8513b31f367a541c7e82a78182ca9983"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::TestFixtureTearDown" ref="a8513b31f367a541c7e82a78182ca9983" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::TestFixtureTearDown </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00041">41</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#abab7cbe90abd59209037290aedb65292">Db</a>.Close();
        }
</pre></div>
</div>
</div>
<a class="anchor" id="af07b23d71695af31d7e47a9e75f7f4c7"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::TestOpenClose01" ref="af07b23d71695af31d7e47a9e75f7f4c7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::TestOpenClose01 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00089">89</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            var context = <span class="keyword">new</span> TestOpenClose01Context(this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a>);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a55016b099daeb17214c83cbbb4b8c1f3">InitializeContext</a>(context);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac4ab04493e2b8f30108a04df0c0e855d">Start</a>(context);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="abce2b7a02d1eb541a207539f5b2b72b3"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::TestOpenClose02" ref="abce2b7a02d1eb541a207539f5b2b72b3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::TestOpenClose02 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00097">97</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            var context = <span class="keyword">new</span> TestOpenClose02Context(this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a>);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a55016b099daeb17214c83cbbb4b8c1f3">InitializeContext</a>(context);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac4ab04493e2b8f30108a04df0c0e855d">Start</a>(context);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a596aa4b3439f41503cacae32b2c443f2"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::TestRegisterNewAccount" ref="a596aa4b3439f41503cacae32b2c443f2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::TestRegisterNewAccount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00061">61</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#abab7cbe90abd59209037290aedb65292">Db</a>.UserRemove(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a>.Jid.User);
            var context = <span class="keyword">new</span> TestRegisterNewAccountContext(this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a>);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a55016b099daeb17214c83cbbb4b8c1f3">InitializeContext</a>(context);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac4ab04493e2b8f30108a04df0c0e855d">Start</a>(context);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a704dde629a5d61f5f19755bc2cc158b0"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::TestRosterAdd" ref="a704dde629a5d61f5f19755bc2cc158b0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::TestRosterAdd </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00121">121</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            var context = <span class="keyword">new</span> TestRosterAddContext(this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a>);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a55016b099daeb17214c83cbbb4b8c1f3">InitializeContext</a>(context);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac4ab04493e2b8f30108a04df0c0e855d">Start</a>(context);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ad2d66e77beb61dca4297b5547bd25759"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::TestRosterAddRemove" ref="ad2d66e77beb61dca4297b5547bd25759" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::TestRosterAddRemove </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00113">113</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            var context = <span class="keyword">new</span> TestRosterAddRemoveContext(this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a>);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a55016b099daeb17214c83cbbb4b8c1f3">InitializeContext</a>(context);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac4ab04493e2b8f30108a04df0c0e855d">Start</a>(context);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a1f83c591c7b9dbaa4f732bf8b0b2a518"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::TestScenarioLogin" ref="a1f83c591c7b9dbaa4f732bf8b0b2a518" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::TestScenarioLogin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00070">70</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#abab7cbe90abd59209037290aedb65292">Db</a>.UserAdd(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a>.Jid.User, <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a160af876623f270df165374b80318aa3">password1</a>);
            var context = <span class="keyword">new</span> TestLoginContext(this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a>);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a55016b099daeb17214c83cbbb4b8c1f3">InitializeContext</a>(context);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac4ab04493e2b8f30108a04df0c0e855d">Start</a>(context);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="a594a1ba1723cbd75826081a397ed8d09"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::TestScenarioLogin02" ref="a594a1ba1723cbd75826081a397ed8d09" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::TestScenarioLogin02 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00079">79</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#abab7cbe90abd59209037290aedb65292">Db</a>.UserAdd(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a>.Jid.User, <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a160af876623f270df165374b80318aa3">password1</a>);
            this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#abab7cbe90abd59209037290aedb65292">Db</a>.UserAdd(<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a>.Jid.User, <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a6fee9f9418c890dff354e36e893a5c72">password2</a>);
            var context = <span class="keyword">new</span> TestLogin02Context(this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a>);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a55016b099daeb17214c83cbbb4b8c1f3">InitializeContext</a>(context);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac4ab04493e2b8f30108a04df0c0e855d">Start</a>(context);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="acb1e7b65d6d1198679cd624046e96d92"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::TestScenarioUnSubscribe" ref="acb1e7b65d6d1198679cd624046e96d92" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::TestScenarioUnSubscribe </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00105">105</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            var context = <span class="keyword">new</span> TestUnSubscribeContext(this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a>);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a55016b099daeb17214c83cbbb4b8c1f3">InitializeContext</a>(context);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac4ab04493e2b8f30108a04df0c0e855d">Start</a>(context);
        }
</pre></div>
</div>
</div>
<a class="anchor" id="ae1d55a6e9e2053b7b84839416728e997"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::TestSubscription01" ref="ae1d55a6e9e2053b7b84839416728e997" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void StateForge::Examples::XmppChat::ChatScenarioTest::TestSubscription01 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00129">129</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>
<div class="fragment"><pre class="fragment">        {
            var context = <span class="keyword">new</span> TestSubscription01Context(this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">chatScenario</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">alice</a>, this.<a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">bob</a>);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a55016b099daeb17214c83cbbb4b8c1f3">InitializeContext</a>(context);
            <a class="code" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac4ab04493e2b8f30108a04df0c0e855d">Start</a>(context);
        }
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ab4fdade615b78f3962dbd899d0002e42"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::alice" ref="ab4fdade615b78f3962dbd899d0002e42" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a> <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ab4fdade615b78f3962dbd899d0002e42">StateForge::Examples::XmppChat::ChatScenarioTest::alice</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00017">17</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a6134cc4a314fbe4d2a20db8090b32b9d"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::autoResetEvent" ref="a6134cc4a314fbe4d2a20db8090b32b9d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">AutoResetEvent <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a6134cc4a314fbe4d2a20db8090b32b9d">StateForge::Examples::XmppChat::ChatScenarioTest::autoResetEvent</a> = new AutoResetEvent(false)<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00013">13</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="afa06f9f9c4bb29b38048a00328742f86"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::bob" ref="afa06f9f9c4bb29b38048a00328742f86" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_client.html">Client</a> <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#afa06f9f9c4bb29b38048a00328742f86">StateForge::Examples::XmppChat::ChatScenarioTest::bob</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00017">17</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a81949593b89e2987cda7aa48249171a1"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::chatScenario" ref="a81949593b89e2987cda7aa48249171a1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario.html">ChatScenario</a> <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a81949593b89e2987cda7aa48249171a1">StateForge::Examples::XmppChat::ChatScenarioTest::chatScenario</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00018">18</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ac2504098d34f400d2b8595f74e1d96aa"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::dbConnectionString" ref="ac2504098d34f400d2b8595f74e1d96aa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac2504098d34f400d2b8595f74e1d96aa">StateForge::Examples::XmppChat::ChatScenarioTest::dbConnectionString</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00022">22</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a160af876623f270df165374b80318aa3"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::password1" ref="a160af876623f270df165374b80318aa3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a160af876623f270df165374b80318aa3">StateForge::Examples::XmppChat::ChatScenarioTest::password1</a> = &quot;stateforge1&quot;<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00025">25</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a6fee9f9418c890dff354e36e893a5c72"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::password2" ref="a6fee9f9418c890dff354e36e893a5c72" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a6fee9f9418c890dff354e36e893a5c72">StateForge::Examples::XmppChat::ChatScenarioTest::password2</a> = &quot;stateforge2&quot;<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00028">28</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="aa6070238faf8bc0b531170d0ad0db8f3"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::server" ref="aa6070238faf8bc0b531170d0ad0db8f3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#aa6070238faf8bc0b531170d0ad0db8f3">StateForge::Examples::XmppChat::ChatScenarioTest::server</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00021">21</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="af3f5922f5d2adeda1756ccddbf8d35ad"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::traceName" ref="af3f5922f5d2adeda1756ccddbf8d35ad" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">readonly string <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#af3f5922f5d2adeda1756ccddbf8d35ad">StateForge::Examples::XmppChat::ChatScenarioTest::traceName</a> = &quot;Client&quot;<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00014">14</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a4244ee948d5db0c60e7cd58880578bcb"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::ts" ref="a4244ee948d5db0c60e7cd58880578bcb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TraceSource <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a4244ee948d5db0c60e7cd58880578bcb">StateForge::Examples::XmppChat::ChatScenarioTest::ts</a> = new TraceSource(<a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#af3f5922f5d2adeda1756ccddbf8d35ad">traceName</a>)<code> [static, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00015">15</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="a4283244edfdb32332306ca4db2f34fff"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::username1" ref="a4283244edfdb32332306ca4db2f34fff" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#a4283244edfdb32332306ca4db2f34fff">StateForge::Examples::XmppChat::ChatScenarioTest::username1</a> = &quot;stateforge1&quot;<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00024">24</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>

</div>
</div>
<a class="anchor" id="ac8d9c4781f3bf9f36b916a313be3d3cd"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::username2" ref="ac8d9c4781f3bf9f36b916a313be3d3cd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string <a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_chat_scenario_test.html#ac8d9c4781f3bf9f36b916a313be3d3cd">StateForge::Examples::XmppChat::ChatScenarioTest::username2</a> = &quot;stateforge2&quot;<code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00027">27</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>

</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="abab7cbe90abd59209037290aedb65292"></a><!-- doxytag: member="StateForge::Examples::XmppChat::ChatScenarioTest::Db" ref="abab7cbe90abd59209037290aedb65292" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_state_forge_1_1_examples_1_1_xmpp_chat_1_1_xmpp_db.html">XmppDb</a> StateForge::Examples::XmppChat::ChatScenarioTest::Db<code> [get, set, private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_chat_scenario_test_8cs_source.html#l00019">19</a> of file <a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_chat_scenario_test_8cs_source.html">ChatScenarioTest.cs</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
